module.exports = {
  outputDir: 'dist',
  devServer: {
      // open: process.platform === 'darwin',
      host: '0.0.0.0',
      port: 8080,
      https: false,
      hotOnly: false,
      disableHostCheck: true,
      // See https://github.com/vuejs/vue-cli/blob/dev/docs/cli-service.md#configuring-proxy
      proxy: {
        '/api': {
          target: 'http://127.0.0.1:8080',   //代理路径
          changeOrigin: true,
          pathRewrite: {
            '^/api': ''    //代理的路径
          }
        }
      }, // string | Object
      before: app => {}
  }
};